<?php
use yii\helpers\Html;

?>
<?= Html::beginForm(['good/add_do'], 'post', ['enctype' => 'multipart/form-data']) ?>
  名称：<?= Html::input('text', 'name') ?><br/><br/>
  价格：<?= Html::input('text', 'price') ?><br/><br/>
  库存：<?= Html::input('text', 'stock') ?><br/><br/>
  状态：<?= Html::input('text', 'status') ?><br/><br/>
 <input type="hidden" name="_csrf" value="<?php echo yii::$app->request->csrfToken ?>">
 <?= Html::submitButton('Submit', ['class' => 'submit']) ?>
<?= Html::endForm() ?>
